package org.derusse.cycle.service;

import org.derusse.cycle.CycleMeterApplication;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class CycleMeterService extends Service {

	private CycleMeterApplication application;
	
	@Override
	public void onCreate() {
		super.onCreate();

		this.application = (CycleMeterApplication) getApplication();
	}

	@Override
	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);

		this.application.getTrack().Start();
	}

	@Override
	public void onDestroy() {
		this.application.getTrack().Stop();
		super.onDestroy();
	}

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

}